package com.cloudfun.campusshare.repo;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.Collection;
import java.util.List;

/**
 * Created by Huqin on 2020/5/7
 */
public interface RoleRelRepo extends
        PagingAndSortingRepository<RoleRel, String>,
        JpaSpecificationExecutor<RoleRel> {

    List<RoleRel> findAllByMasterId(String masterId);

    List<RoleRel> findAllBySlaveId(String slaveId);

    List<RoleRel> findAllByMasterIdIn(Collection<String> masterIds);

}
